<?php
class Logger {
	
	private $sourceName;
	
	protected function __construct($sourceName) {
		$this->sourceName = $sourceName;
		$this->level = $level;
	}
	
	public function logMessage($message, $level) {
		
		LoggerFactory::logGeneralMessage($this->sourceName, $message, $level);
	}
	
	public function debug($message) {
		$this->logMessage($message, LoggerFactory::$debug);
	}
	
	public function info($message) {
		$this->logMessage($message, LoggerFactory::$info);
	}
	
	public function warning($message) {
		$this->logMessage($message, LoggerFactory::$warning);
	}
	
	public function error($message) {
		$this->logMessage($message, LoggerFactory::$error);
	}
	
	public function fatal($message) {
		$this->logMessage($message, LoggerFactory::$fatal);
	}
}
?>